#!/usr/bin/env python
# encoding: utf-8
"""
Author: wq
Time: 2023/7/20 14:57
Description:
"""
from django.core.cache import cache


def get_cache_value(key):

    value = cache.get(key=key)
    return value


def set_cache_value(key, value, timeout=None):

    cache.set(key, value, timeout or 60)


def delete_cache_key(key):

    cache.delete(key=key)
